{"ast":null,"code":"import responsivePropType from './responsivePropType';\nimport style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nfunction getBorder(value) {\n  if (typeof value !== 'number') {\n    return value;\n  }\n  return \"\".concat(value, \"px solid\");\n}\nexport var border = style({\n  prop: 'border',\n  themeKey: 'borders',\n  transform: getBorder\n});\nexport var borderTop = style({\n  prop: 'borderTop',\n  themeKey: 'borders',\n  transform: getBorder\n});\nexport var borderRight = style({\n  prop: 'borderRight',\n  themeKey: 'borders',\n  transform: getBorder\n});\nexport var borderBottom = style({\n  prop: 'borderBottom',\n  themeKey: 'borders',\n  transform: getBorder\n});\nexport var borderLeft = style({\n  prop: 'borderLeft',\n  themeKey: 'borders',\n  transform: getBorder\n});\nexport var borderColor = style({\n  prop: 'borderColor',\n  themeKey: 'palette'\n});\nexport var borderTopColor = style({\n  prop: 'borderTopColor',\n  themeKey: 'palette'\n});\nexport var borderRightColor = style({\n  prop: 'borderRightColor',\n  themeKey: 'palette'\n});\nexport var borderBottomColor = style({\n  prop: 'borderBottomColor',\n  themeKey: 'palette'\n});\nexport var borderLeftColor = style({\n  prop: 'borderLeftColor',\n  themeKey: 'palette'\n});\nexport var borderRadius = function borderRadius(props) {\n  if (props.borderRadius !== undefined && props.borderRadius !== null) {\n    var transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n    var styleFromPropValue = function styleFromPropValue(propValue) {\n      return {\n        borderRadius: getValue(transformer, propValue)\n      };\n    };\n    return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n  }\n  return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n  borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nvar borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius);\nexport default borders;","map":{"version":3,"names":["responsivePropType","style","compose","createUnaryUnit","getValue","handleBreakpoints","getBorder","value","border","prop","themeKey","transform","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderRadius","props","undefined","transformer","theme","styleFromPropValue","propValue","propTypes","process","env","NODE_ENV","filterProps","borders"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@mui/system/esm/borders.js"],"sourcesContent":["import responsivePropType from './responsivePropType';\nimport style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nfunction getBorder(value) {\n  if (typeof value !== 'number') {\n    return value;\n  }\n  return `${value}px solid`;\n}\nexport const border = style({\n  prop: 'border',\n  themeKey: 'borders',\n  transform: getBorder\n});\nexport const borderTop = style({\n  prop: 'borderTop',\n  themeKey: 'borders',\n  transform: getBorder\n});\nexport const borderRight = style({\n  prop: 'borderRight',\n  themeKey: 'borders',\n  transform: getBorder\n});\nexport const borderBottom = style({\n  prop: 'borderBottom',\n  themeKey: 'borders',\n  transform: getBorder\n});\nexport const borderLeft = style({\n  prop: 'borderLeft',\n  themeKey: 'borders',\n  transform: getBorder\n});\nexport const borderColor = style({\n  prop: 'borderColor',\n  themeKey: 'palette'\n});\nexport const borderTopColor = style({\n  prop: 'borderTopColor',\n  themeKey: 'palette'\n});\nexport const borderRightColor = style({\n  prop: 'borderRightColor',\n  themeKey: 'palette'\n});\nexport const borderBottomColor = style({\n  prop: 'borderBottomColor',\n  themeKey: 'palette'\n});\nexport const borderLeftColor = style({\n  prop: 'borderLeftColor',\n  themeKey: 'palette'\n});\nexport const borderRadius = props => {\n  if (props.borderRadius !== undefined && props.borderRadius !== null) {\n    const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n    const styleFromPropValue = propValue => ({\n      borderRadius: getValue(transformer, propValue)\n    });\n    return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n  }\n  return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n  borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius);\nexport default borders;"],"mappings":"AAAA,OAAOA,kBAAkB,MAAM,sBAAsB;AACrD,OAAOC,KAAK,MAAM,SAAS;AAC3B,OAAOC,OAAO,MAAM,WAAW;AAC/B,SAASC,eAAe,EAAEC,QAAQ,QAAQ,WAAW;AACrD,SAASC,iBAAiB,QAAQ,eAAe;AACjD,SAASC,SAAS,CAACC,KAAK,EAAE;EACxB,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAOA,KAAK;EACd;EACA,iBAAUA,KAAK;AACjB;AACA,OAAO,IAAMC,MAAM,GAAGP,KAAK,CAAC;EAC1BQ,IAAI,EAAE,QAAQ;EACdC,QAAQ,EAAE,SAAS;EACnBC,SAAS,EAAEL;AACb,CAAC,CAAC;AACF,OAAO,IAAMM,SAAS,GAAGX,KAAK,CAAC;EAC7BQ,IAAI,EAAE,WAAW;EACjBC,QAAQ,EAAE,SAAS;EACnBC,SAAS,EAAEL;AACb,CAAC,CAAC;AACF,OAAO,IAAMO,WAAW,GAAGZ,KAAK,CAAC;EAC/BQ,IAAI,EAAE,aAAa;EACnBC,QAAQ,EAAE,SAAS;EACnBC,SAAS,EAAEL;AACb,CAAC,CAAC;AACF,OAAO,IAAMQ,YAAY,GAAGb,KAAK,CAAC;EAChCQ,IAAI,EAAE,cAAc;EACpBC,QAAQ,EAAE,SAAS;EACnBC,SAAS,EAAEL;AACb,CAAC,CAAC;AACF,OAAO,IAAMS,UAAU,GAAGd,KAAK,CAAC;EAC9BQ,IAAI,EAAE,YAAY;EAClBC,QAAQ,EAAE,SAAS;EACnBC,SAAS,EAAEL;AACb,CAAC,CAAC;AACF,OAAO,IAAMU,WAAW,GAAGf,KAAK,CAAC;EAC/BQ,IAAI,EAAE,aAAa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